package yuhao.log;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Scanner;

public class LogDemo2 {
    private static final Logger LOGGER = LoggerFactory.getLogger(LogDemo2.class);

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String i = sc.nextLine();

        try {
            int i1 = Integer.parseInt(i);
            LOGGER.info("数据已经转换成功" + i1);
        } catch (NumberFormatException e) {
            LOGGER.info("数据转换失败,请输入一个整数");

        }
    }
}
